package cate.game.role.system.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBSystem;
import easy.java.dev.note.NoteField;
import easy.java.practice.errorcode.EcResult;

@ClientMsg(title = "设置同步主线阵容 の 请求")
public class SyncAdventureSetReq implements MsgInput {


    @NoteField("同步主线阵容")
    public boolean syncAdventure;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getSystem().syncAdventure = syncAdventure;
        cc.getRole().sendNow(new SyncAdventureSetResp(cc.getRole()));
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBSystem.SYNC_ADVENTURE_REQ;
    }
}
